package com.lc.action;

import com.lc.mapper.HttpServlet;
import com.lc.mode.Request;
import com.lc.mode.Response;

import java.io.IOException;

/**
 * @author liuc
 * @date 2021/5/7
 * @description
 **/
public class HiServlet extends HttpServlet {

    @Override
    protected void dpGet(Request request, Response response) {
        try {
            response.write("hi servlet do get");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    protected void doPost(Request request, Response response) {
        try {
            response.write("hi servlet do post");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    protected void doDelete(Request request, Response response) {
        try {
            response.write("hi servlet do delete");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    protected void doPut(Request request, Response response) {
        try {
            response.write("hi servlet do put");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}